package com.tt.mymu.service;

import com.tt.mymu.entity.User;
import com.tt.mymu.entity.po.UserPO;
import com.tt.mymu.utils.Result;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface UserService {


    Result loginUser(String userName, String password, HttpServletRequest request, HttpServletResponse response);

    Result registUser(User use, HttpServletRequest request, HttpServletResponse response);

    Result deleteUser(int id);

    Result updateUser(User use);

    Result getUserList(UserPO userPO, int page, int size);

    Result getUserById(int id);

    Result getUserByToken(String token);

}
